#include "EnableEventHandle.h"
#include <SECore/EventHandler.h>

namespace SEngine
{
    void EnableEventHandle::OnEventImpl(EventPtr ev)
    {
        for (auto & handler : m_handlers) {
            handler->OnEvent(ev);
        }
    }

    void EnableEventHandle::OnUpdateImpl(int delta)
    {
        for (auto & handler : m_handlers) {
            handler->OnUpdate(delta);
        }
    }

} // namespace SEngine

